package com.site.wisdom_construction.service.safetyModule;

import com.site.wisdom_construction.dao.safetyModule.SafetyDangerRecordDao;
import com.site.wisdom_construction.entity.safetyModule.SafetyDangerRecord;
import com.site.wisdom_construction.statisticsResult.MonthValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/11
 * @Description
 */
@Service
public class SafetyDangerRecordService implements SafetyDangerRecordDao {
    @Autowired
    private SafetyDangerRecordDao safetyDangerRecordDao;

    @Override
    public int insertSafetyDangerRecordByPc(Map map) {
        return safetyDangerRecordDao.insertSafetyDangerRecordByPc(map);
    }

    @Override
    public int insertSafetyDangerRecordByApp(Map map) {
        return safetyDangerRecordDao.insertSafetyDangerRecordByApp(map);
    }

    @Override
    public int deleteSafetyDangerRecord(Map map) {
        return safetyDangerRecordDao.deleteSafetyDangerRecord(map);
    }

    @Override
    public int updateSafetyDangerRecord(Map map) {
        return safetyDangerRecordDao.updateSafetyDangerRecord(map);
    }

    @Override
    public int updateSafetyDangerRecordByReport(Map map) {
        return safetyDangerRecordDao.updateSafetyDangerRecordByReport(map);
    }

    @Override
    public int updateSafetyDangerRecordByAccept(Map map) {
        return safetyDangerRecordDao.updateSafetyDangerRecordByAccept(map);
    }

    @Override
    public List<SafetyDangerRecord> findSafetyDangerRecordByPage(Map map) {
        return safetyDangerRecordDao.findSafetyDangerRecordByPage(map);
    }

    @Override
    public long Total(Map map) {
        return safetyDangerRecordDao.Total(map);
    }

    @Override
    public List<SafetyDangerRecord> selectSafetyDangerRecord(Map map) {
        return safetyDangerRecordDao.selectSafetyDangerRecord(map);
    }

    @Override
    public List<SafetyDangerRecord> findSafetyDangerRecordById(Map map) {
        return safetyDangerRecordDao.findSafetyDangerRecordById(map);
    }

    @Override
    public List<SafetyDangerRecord> findSafetyDangerRecordByManagerialId(Map map) {
        return safetyDangerRecordDao.findSafetyDangerRecordByManagerialId(map);
    }

    @Override
    public long totalByManagerialId(Map map) {
        return safetyDangerRecordDao.totalByManagerialId(map);
    }

    @Override
    public List<SafetyDangerRecord> findSafetyDangerRecordByWorkersId(Map map) {
        return safetyDangerRecordDao.findSafetyDangerRecordByWorkersId(map);
    }

    @Override
    public long totalByWorkersId(Map map) {
        return safetyDangerRecordDao.totalByWorkersId(map);
    }

    @Override
    public Integer countAllByProjectId(Map map) {
        return safetyDangerRecordDao.countAllByProjectId(map);
    }

    @Override
    public List<MonthValue> countSafetyDangerRecord(Map map) {
        return safetyDangerRecordDao.countSafetyDangerRecord(map);
    }
}
